From: Marina Zhurakhinskaya Date: Thu, 13 Jan 2011 23:33:01 +0000 (-0500) Subject: Remove _onKeyPress() function in Notification X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9279 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a681a2ba02e18d5a06349ca3c564432ca5601ddd;p=gnome-shell.git Remove _onKeyPress() function in Notification Its usage was removed in commit 4dd4c9f99f528667eb0b571a71ed23f61919f44b - "Use more actor.grab_key_focus() and less stage.connect('key-press-event')". --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 57f5acf02..1e896a9c5 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -706,15 +706,6 @@ Notification.prototype = { this.destroy(); }, - _onKeyPress: function(actor, event) { - let symbol = event.get_key_symbol(); - if (symbol == Clutter.Escape) { - Main.messageTray.escapeTray(); - return true; - } - return false; - }, - ungrabFocus: function() { if (!this._hasFocus) return;